/*
 * @Description: 
 * @version: 
 * @Author: wyx
 * @Date: 2020-10-04 13:39:27
 * @LastEditDate: Do not exit
 */
import request from '@/utils/request'

/**
 *查询畅销榜单
 * @param {type} 
 */
export function getSellGoods(){
    return request({url:"/goods-service/goods/sell",method:"get"});
}

/**
 *查询新品榜单
 * @param {type} 
 */
export function getNewGoods(){
    return request({url:"/goods-service/goods/new",method:"get"});
}

/**
 *根据标题模糊分页查询
 * @param {type} 
 */
export function getByTitle(keyword){
    return request({url:"/goods-service/goods/listpage",method:"post",data:keyword});
}

/**
 *根据id查询商品详情
 * @param {type} 
 */
export function getById(id){
    return request({url:"/goods-service/goods/list/"+id,method:"get"});
}

/**
 *随机产生6个商品
 * @param {type} 
 */
export function getLike(){
    return request({url:"/goods-service/goods/like",method:"get"});
}